package com.fowo.api.model.nav.logistics.channel.address;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 物流管理-API对接物流-地址设置 导入导出辅助模型 */
@Getter
@Setter
public class NavLogisticsChannelAddressExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属物流管理-API对接物流-渠道基本信息")
  private String parentNavLogisticsChannelExpressName;

  @ExcelIgnore
  @ExcelProperty(value = "所属物流管理-API对接物流-渠道基本信息")
  private Long parentNavLogisticsChannel;

  @NotBlank(message = "地址类型不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*地址类型")
  private String type;

  @NotBlank(message = "公司不能为空")
  @Size(max = 50, message = "公司长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*公司")
  private String company;

  @NotBlank(message = "联系人不能为空")
  @Size(max = 50, message = "联系人长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*联系人")
  private String contacts;

  @NotBlank(message = "电话号码不能为空")
  @Size(max = 50, message = "电话号码长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*电话号码")
  private String phone;

  @NotBlank(message = "邮编不能为空")
  @Size(max = 50, message = "邮编长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*邮编")
  private String postCode;

  @NotBlank(message = "邮箱不能为空")
  @Size(max = 50, message = "邮箱长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*邮箱")
  private String email;

  @NotNull(message = "国家/地区不能为空")
  @Size(max = 50, message = "国家/地区长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*国家/地区")
  private String countryCountry;

  @ExcelIgnore
  @ExcelProperty(value = "*国家/地区")
  private Long country;

  @NotBlank(message = "省/州不能为空")
  @Size(max = 50, message = "省/州长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*省/州")
  private String province;

  @NotBlank(message = "城市不能为空")
  @Size(max = 50, message = "城市长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*城市")
  private String city;

  @NotBlank(message = "区不能为空")
  @Size(max = 50, message = "区长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*区")
  private String area;

  @NotBlank(message = "地址1不能为空")
  @Size(max = 50, message = "地址1长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*地址1")
  private String address1;

  @Size(max = 50, message = "地址2长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "地址2")
  private String address2;

  @Size(max = 50, message = "地址3长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "地址3")
  private String address3;
}
